<template>
  <div>
    <Header />
    <router-view></router-view>
    <Footer> v-show="$route.meta.show"/> </Footer>
  </div>
</template>

<script>
// import HelloWorld from './components/HelloWorld.vue'
// 引入Header组件
import Header from "./components/Header";
import Footer from "./components/Footer";
export default {
  name: "App",
  components: {
    // HelloWorld
    Header,
    Footer,
  },
  created() {
  },
  mounted() {
    this.$store.dispatch("categoryList");
    // 获取用户信息在首页展示
    this.$store.dispatch("GetuserInfo")
  }
};
</script>

<style>
</style>
